// 引入react
import * as React from 'react';
import {StyleSheet, View, Dimensions} from 'react-native';

/**
 * @Description:
 * @author TangYong
 * @date 2022/12/16
 */
export class BrLine extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
        };
    }
    //生命周期：组件挂载后
    componentDidMount() {
    }

    //方法

    //DOM
    render() {
        return (
            <View style={style.br1}></View>
        )
    }

}
const width = Dimensions.get('window').width;
const style = StyleSheet.create({
    //样式
    br: {
        height: 1,
        margin: StyleSheet.hairlineWidth,
        backgroundColor: '#EBEDED',
        width: width,
    },
    br1:{
        marginBottom: StyleSheet.hairlineWidth,

        // 【方法一】用border做分割线
        borderBottomColor: '#EBEDED',
        borderBottomWidth: StyleSheet.hairlineWidth,

    }
})
